<?php /* Smarty version 2.6.18, created on 2010-01-15 23:50:17
         compiled from receipt.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'receipt.tpl', 19, false),)), $this); ?>

<form name="supplierForm" id="supplierForm">
<table class="popup" border="0" cellspacing=0 cellpadding=0 width="100%">
	<tr><td><div class="pop"><div class="top_pop"><img src="/app/default/www/images/top_left_pop.jpg" /></div> 
		<div id="drag_bar"><h2 class="pop_h2">&nbsp;&nbsp;Receipt Details</h2></div>
		<div class="content">
			<table border="0" width="100%" >
				<tr>
					<td>MOID</td>
					<td>Organism</td>
					<td>Size</td>
					<td>Qty. Received</td>
					<td>DOA</td>
					<td>Reject</td>
				</tr>
				<tr><td colspan="6"><hr></td></tr>
				
				<?php $_from = $this->_tpl_vars['receipts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
?>
				<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
					<td width="10%"><?php echo $this->_tpl_vars['item']['moid']; ?>
</td>
					<td width="30%"><?php echo $this->_tpl_vars['item']['name']; ?>
</td>
					<td width="10%"><?php echo $this->_tpl_vars['item']['size']; ?>
</td>
					<td width="10%" align="right" style="padding-right:10px"><?php echo $this->_tpl_vars['item']['received_quantity']; ?>
</td>
					<td width="10%" align="right" style="padding-right:10px"><?php echo $this->_tpl_vars['item']['doa_quantity']; ?>
</td>
					<td width="10%" align="right" style="padding-right:10px">
					<table border="0" width="100%">
					<?php $_from = $this->_tpl_vars['item']['reject']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['reject']):
?>
						<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
							<td><?php echo $this->_tpl_vars['reject']['qty']; ?>
</td>
							<td nowrap><?php echo $this->_tpl_vars['reject']['reason']; ?>
</td>
						</tr>
					<?php endforeach; endif; unset($_from); ?>
					</table>
					</td>
				</tr>
				<?php endforeach; endif; unset($_from); ?>
				<tr><td height="10"></td></tr>
				<tr>
					<td colspan="6" align="center"><input type="button" value="&lt;&lt;Back" onclick="popup('receiptdetail');"></td>
				</tr>
			</table>
	</div>	
	<div class="btm_pop"><img src="/app/default/www/images/btm_left_pop.jpg"  alt="" />
	</td></tr>
</table>
</form>